/**
 * 采购相关控件
 */
interface TcomponentItem {
  componentName: string; //控件的名称
  componentType: string; //控件的类型
  code: string; //控件的唯一code
  templateType?: number; //模板类型 1、需求 | 2、订单 | 3、合同 | 4、采购
  showFieldList: string[]; //该控件可修改的props字段
  icon: string; //控件的icon
  props: any; //对象 props的默认值
  type: string;
}

const contractControl: TcomponentItem[] = [
  {
    componentName: '创建人',
    componentType: 'CREATED_DY',
    code: 'CREATED_DY',
    icon: 'icon-yuangong',
    templateType: 4,
    showFieldList: ['placeholder'],
    props: {},
    type: '3',
  },
  {
    componentName: '申请部门',
    componentType: 'APPLY_DEPT',
    code: 'APPLY_DEPT',
    icon: 'icon-yuangong',
    templateType: 4,
    showFieldList: ['placeholder'],
    props: {},
    type: '3',
  },
  {
    componentName: '申请时间',
    componentType: 'APPLY_DATE',
    code: 'APPLY_DATE',
    icon: 'icon-yuangong',
    templateType: 4,
    showFieldList: ['placeholder'],
    props: {},
    type: '3',
  },
  {
    componentName: '申请原因',
    componentType: 'APPLY_CAUSE',
    code: 'APPLY_CAUSE',
    icon: 'icon-yuangong',
    templateType: 4,
    showFieldList: ['placeholder'],
    props: {},
    type: '3',
  },
  {
    componentName: '申请明细',
    componentType: 'APPLY_DETAILED',
    code: 'APPLY_DETAILED',
    icon: 'icon-yuangong',
    templateType: 4,
    showFieldList: ['placeholder'],
    props: {},
    type: '3',
  },
  {
    componentName: '供应商名称',
    componentType: 'SUOOLIER-NAME',
    code: 'SUOOLIER-NAME',
    icon: 'icon-yuangong',
    templateType: 4,
    showFieldList: ['placeholder'],
    props: {},
    type: '3',
  },
  {
    componentName: '供应商编号',
    componentType: 'SUOOLIER-NUMBER',
    code: 'SUOOLIER-NUMBER',
    icon: 'icon-yuangong',
    templateType: 4,
    showFieldList: ['placeholder'],
    props: {},
    type: '3',
  },
  {
    componentName: '联系电话',
    componentType: 'CONTACT-NUMBER',
    code: 'CONTACT-NUMBER',
    icon: 'icon-yuangong',
    templateType: 4,
    showFieldList: ['placeholder'],
    props: {},
    type: '3',
  },
  {
    componentName: '邮箱',
    componentType: 'E-MAIL',
    code: 'E-MAIL',
    icon: 'icon-yuangong',
    templateType: 4,
    showFieldList: ['placeholder'],
    props: {},
    type: '3',
  },
  {
    componentName: '联系地址',
    componentType: 'CONTACT-ADDRESS',
    code: 'CONTACT-ADDRESS',
    icon: 'icon-yuangong',
    templateType: 4,
    showFieldList: ['placeholder'],
    props: {},
    type: '3',
  },
  {
    componentName: '采购员',
    componentType: 'BUYER',
    code: 'BUYER',
    icon: 'icon-yuangong',
    templateType: 4,
    showFieldList: ['placeholder'],
    props: {},
    type: '3',
  },
  {
    componentName: '采购联系电话',
    componentType: 'BUY-PHONE',
    code: 'BUY-PHONE',
    icon: 'icon-yuangong',
    templateType: 4,
    showFieldList: ['placeholder'],
    props: {},
    type: '3',
  },
  {
    componentName: '采购日期',
    componentType: 'BUY-DATE',
    code: 'BUY-DATE',
    icon: 'icon-yuangong',
    templateType: 4,
    showFieldList: ['placeholder'],
    props: {},
    type: '3',
  },
  {
    componentName: '采购明细',
    componentType: 'BUY-DETAILED',
    code: 'BUY-DETAILED',
    icon: 'icon-yuangong',
    templateType: 4,
    showFieldList: ['placeholder'],
    props: {},
    type: '3',
  },
  {
    componentName: '采购总金额',
    componentType: 'BUY-TOTAL-AMOUNT',
    code: 'BUY-TOTAL-AMOUNT',
    icon: 'icon-yuangong',
    templateType: 4,
    showFieldList: ['placeholder'],
    props: {},
    type: '3',
  },
  {
    componentName: '采购计划明细',
    componentType: 'BUY-PLAN-DETAILS',
    code: 'BUY-PLAN-DETAILS',
    icon: 'icon-yuangong',
    templateType: 4,
    showFieldList: ['placeholder'],
    props: {},
    type: '3',
  },
  {
    componentName: '收获要求',
    componentType: 'RECEIVING_REQUIREMENTS_BC',
    code: 'RECEIVING_REQUIREMENTS_BC',
    icon: 'icon-biaoge',
    showFieldList: ['placeholder'],
    props: {},
    type: '3',
  },
];

export default contractControl;
